package com.diandi.messages.enums;


/**
 * Created by Administrator on 2017/7/3.
 */
public enum MessagesMsgEnums {
    初始化("0", "初始化"),
    处理中("2","处理中"),
    处理成功("1","处理成功"),
    处理失败("3","处理失败"),
    ;
    private String number;
    private String desc;

    MessagesMsgEnums(String number, String desc) {
        this.number = number;
        this.desc = desc;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static MessagesMsgEnums getEmun(String number){
        for (MessagesMsgEnums merchantNo : MessagesMsgEnums.values()) {
            if(merchantNo.getNumber().equals(number)){
                return merchantNo;
            }
        }
        return null;
    }
}
